<?php
//pr($message);
//pr($new_info);
//pd($old_info);

$title=array();
foreach($new_info as $k => $v){
    if($v != $old_info[$k]){
        $title[$k]=$message[$k][$v];
    }
}
if(empty($title)){
    $this->renderPartial('//site/info',array(
        'msg'=>'状态没有改变',
    ));
}else{
?>

<div class="detailContent-title">
    <?php if(isset($this->breadcrumbs)):?>
        <?php $this->widget('zii.widgets.CBreadcrumbs', array(
        'htmlOptions'=>array('class'=>'local'),
        'separator'=>'&nbsp;&gt;&nbsp;',
        'links'=>array(
            '权限更改留言',
        ),
        'homeLink'=>'当前位置：首页',
        'tagName'=>'span',
    )); ?><!-- breadcrumbs -->
    <?php endif?>
</div>

<div class="detailContent">

<?php
    echo CHtml::form($this->createUrl('manage/message'),'post');
    $i=1;
    foreach($title as $t_k=>$t_v){
        echo '对用户留言: <br />';
        echo CHtml::textField('message['.$i.'][title]', $t_v, array('size'=>60,'class'=>'msg'));
        echo '<br /><br />';
        echo '补充原因: <br />';
        echo CHtml::textArea('message['.$i.'][content]','', array('class'=>'msg'));
        echo '<br /><div style="border-bottom: 1px dashed #DCDCF8;clear: both;">&nbsp;</div><br />';

        $i++;
    }
    echo '<br /><br />';
    echo CHtml::hiddenField('to_uid', $user->id);
    echo CHtml::submitButton('提交留言');
    echo CHtml::endForm();

?>

    <div class="celar"></div>
</div>

<?php
}
?>



